<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.encuestame</groupId>
        <artifactId>web-app</artifactId>
        <version>1.5.0</version>
    </parent>
    <artifactId>enme-weblogic-app</artifactId>
    <packaging>war</packaging>
    <name>Encuestame Weblogic WAR Webapp</name>
    <profiles>
        <profile>
            <id>production</id>
            <build>
                <filters>
                    <filter>../../../env/${env}.properties</filter>
                </filters>
                <finalName>encuestame</finalName>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-war-plugin</artifactId>
                        <version>${maven.war.plugin}</version>
                        <configuration>
                            <packagingExcludes>
                                WEB-INF/classes/rebel.xml, resource/js/dojo,resource/js/dojox, resource/js/dijit
                            </packagingExcludes>
                            <archive>
                                <manifest>
                                    <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                                </manifest>
                            </archive>
                            <overlays>
                                <overlay>
                                    <groupId>org.encuestame</groupId>
                                    <artifactId>resources-enme-war</artifactId>
                                    <excludes>
                                        <exclude>WEB-INF/web.xml</exclude>
                                    </excludes>
                                </overlay>
                            </overlays>
                            <overlays>
                                <overlay>
                                    <groupId>org.encuestame</groupId>
                                    <artifactId>enme-config</artifactId>
                                    <excludes>
                                        <exclude>WEB-INF/web.xml</exclude>
                                    </excludes>
                                </overlay>
                                <overlay>
                                    <groupId>org.encuestame</groupId>
                                    <artifactId>enme-views</artifactId>
                                    <excludes>
                                        <exclude>WEB-INF/web.xml</exclude>
                                    </excludes>
                                </overlay>
                                <overlay>
                                    <groupId>org.encuestame</groupId>
                                    <artifactId>resources-enme-war</artifactId>
                                    <excludes>
                                        <exclude>WEB-INF/web.xml</exclude>
                                    </excludes>
                                </overlay>
                            </overlays>
                        </configuration>
                    </plugin>
                </plugins>
                <resources>
                    <resource>
                        <directory>src/main/resources/</directory>
                        <includes>
                            <include>*.*</include>
                        </includes>
                        <filtering>true</filtering>
                    </resource>
                </resources>
            </build>
        </profile>
    </profiles>

</project>